Skip to content

feat: render colored icons with iconRenderingMode original#542

Merged
thiagobrez merged 5 commits into
mainfrom
alwaysoriginal-rendering-mode
Jun 19, 2026
Merged

feat: render colored icons with iconRenderingMode original#542
thiagobrez merged 5 commits into
mainfrom
alwaysoriginal-rendering-mode

Conversation

@thiagobrez

@thiagobrez thiagobrez commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

PR Description

Fixes #535

Add a new option to TabView (and to the React Navigation adapter) called iconRenderingMode.

export type IconRenderingMode = 'automatic' | 'original';

Using iconRenderingMode: 'original' allows rendering colored icons without being tinted automatically by the OS, such as brand logos.

Example:

export default function OriginalIconColors() {
  const [index, setIndex] = useState(0);
  const [routes] = useState([
    {
      key: 'tinted',
      title: 'Tinted',
      focusedIcon: require('../../assets/avatar-4.png'),
      // will use default iconRenderingMode: 'automatic'
    },
    {
      key: 'chat',
      title: 'Chat',
      focusedIcon: require('../../assets/avatar-4.png'),
      iconRenderingMode: 'original', // keep original colors
    },
  ]);

  return (
    <TabView
      navigationState={{ index, routes }}
      onIndexChange={setIndex}
      renderScene={renderScene}
    />
  );
}

How to test?

Render a colored icon and enable the iconRenderingMode: 'original' option.

Screenshots

CleanShot.2026-06-18.at.17.04.41.mp4

@thiagobrez thiagobrez changed the title feat(iOS): render colored icons with iconRenderingMode alwaysOriginal feat: render colored icons with iconRenderingMode original Jun 18, 2026
@thiagobrez thiagobrez merged commit 758746c into main Jun 19, 2026
9 checks passed
@thiagobrez thiagobrez deleted the alwaysoriginal-rendering-mode branch June 19, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support alwaysOriginal rendering mode on iOS

1 participant